import Vue from 'vue'
import Router from 'vue-router'
import commonList from '@/components/commonList'
import content from '@/components/content'
import NotFoundComponent from '@/components/NotFoundComponent'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    { path: '*', component: NotFoundComponent },
  	{
      path: '/',
      name: 'commonList',
      component: commonList
    },
    {
      path: '/:tag',
      name: 'commonList',
      component: commonList
    },
    {
      path: '/content/:articleId',
      name: 'content',
      component: content
    }
  ]
})
